<template>
  <div>
    <table class="table">
      <thead>
        <tr>
          <th>Id</th>
          <th>Name</th>
          <th>Ctime</th>
          <th>Oper</th>
        </tr>
      </thead>
      <tbody>
        <tr v-for="(item, index) in list" :key="index">
          <td>{{item.id}}</td>
          <td>{{item.name}}</td>
          <td v-text="item.c"></td>
          <td></td>
        </tr>
      </tbody>
    </table>

    <h1 @click="gotoHelp">帮助中心</h1>
  </div>
</template>

<script>
export default {
  data () {
    return {
      list: [
        { id: 1, name: 'benz', ctime: 'sdsds' },
        { id: 2, name: 'bmw', ctime: 'xx' }
      ]
    }
  },
  methods: {
    gotoHelp () {
      // this.$router.push({
      //   path: '/help'
      // })
      this.$router.push('/help')
    }
  }
}
</script>
